<%@ page language="java" import="java.util.*,Bean.Menu" pageEncoding="utf-8"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="./css/main.css" media="all" />
	<title>菜单查询页面</title>
</head>
	<body>
<%
List<Menu> menuList = (List<Menu>)session.getAttribute("MENU_LIST");
 %>
  <div id="main" align="center">
 <h3>餐品详细信息列表</h3>
<table border=1>
<tr align="center"><td>封面</td><td>餐品名</td><td>价格</td><td>被购买次数</td><td>被浏览次数</td><td>简介</td></tr>
<%
    	for(Menu menu2:menuList){
%>
    		     <tr align="center">
					<td><img src="<%=menu2.getImage_Path() %>" border=0 width=300px height=300px></td>
					<td><%=menu2.getDish_Name() %></td>
					<td><%=menu2.getDish_Price() %>元</td>
					<td><%=menu2.getCount_buy() %></td>
					<td><%=menu2.getNumber_Visits() %></td>
					<!--考虑到简介可能很长，所以使用style="word-break:break-all;"设置自动换行  -->
					<td style="word-break:break-all;"><%=menu2.getRemark() %></td>
    		    </tr>
</table>
    		    	<input type="button" value="看看这家店里其他好吃的" 
    		    	onclick="javascript:window.location.href ='menuQueryCtrl?currentPage=1&&rest_Id=<%=menu2.getRest_Id() %>';">
    		    	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    		    	<input type="button" value="放入购物车" 
    		    	onclick="javascript:window.location.href ='#';">
<%
   		}
%>
</div>
	</body>
</html>
